<div class="num page" style="float: right;">
	<div style="float: right;">
		<div id="infoPage">
			<ul>
				<php>
					if($page>1){
				</php>
				<li>
					<a href="{$url}&page=<php> echo $page-1;</php>" class="upPage" title="上一页">上一页</a>
				</li>
				<php>
					}
				</php>

				<php>
					$first_num = $page-2;
					if($first_num<1){
					$first_num = 1;
					}
					$end_num = $page+2;
					if($end_num>$page_num){
					$end_num = $page_num;
					}
					for($i=$first_num;$i<=$end_num;$i++){
				</php>
				<li>
					<a <if condition="$i==$page">class="nowPage"<else/>class="everyPage"  href="{$url}&page=<php> echo $i;</php>"</if>>{$i}</a>
				</li>
				<php>
					}
				</php>

				<php>
					if($page<$page_num){
				</php>
				<li>
					<a href="{$url}&page=<php> echo $page+1;</php>" class="downPage" title="下一页">下一页</a>
				</li>
				<php>
					}
				</php>
				<li>
					<div id="page-skip">&nbsp;&nbsp;第&nbsp;<input id="inputPage" value="{$page}">&nbsp;页<button href="javascript:;" onclick="go_page()" class="goToPage">确定</button><div>

					</div>
					</div>
				</li>
			</ul>
		</div>
	</div>
</div>
<script>
	function go_page(){
		var page = $("#inputPage").val();
		location.href="{$url}&page="+page;
	}
</script>